package host.skiree.nettydemo.server.service;

import host.skiree.nettydemo.message.Message;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author gcl
 * @date 2022/9/19 8:46
 */
public interface MessageHandler {

    /**
     * 处理消息
     * @param ctx
     * @param message
     */
    void handleMessage(ChannelHandlerContext ctx, Message message);

}
